package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the MAIL database table.
 * 
 */
@Entity
@Table(name="MAIL")
public class Mail implements Serializable {
	private static final long serialVersionUID = 1L;
	private long mailRefnum;
	private String mailBody;
	private BigDecimal mailEstado;
	private BigDecimal mailField2;
	private String mailField1;
	private String mailMbcc;
	private String mailMcopy;
	private String mailMfrom;
	private String mailMto;
	private Date mailSendDate;
	private String mailSenderAgent;
	private Date mailStoreDate;
	private String mailSubj;

    public Mail() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="MAIL_REFNUM", unique=true, nullable=false)
	public long getMailRefnum() {
		return this.mailRefnum;
	}

	public void setMailRefnum(long mailRefnum) {
		this.mailRefnum = mailRefnum;
	}


	@Column(name="MAIL_BODY", nullable=false, length=2279)
	public String getMailBody() {
		return this.mailBody;
	}

	public void setMailBody(String mailBody) {
		this.mailBody = mailBody;
	}


	@Column(name="MAIL_ESTADO", nullable=false)
	public BigDecimal getMailEstado() {
		return this.mailEstado;
	}

	public void setMailEstado(BigDecimal mailEstado) {
		this.mailEstado = mailEstado;
	}


	@Column(name="MAIL_FIELD_2")
	public BigDecimal getMailField2() {
		return this.mailField2;
	}

	public void setMailField2(BigDecimal mailField2) {
		this.mailField2 = mailField2;
	}


	@Column(name="MAIL_FIELD1", length=254)
	public String getMailField1() {
		return this.mailField1;
	}

	public void setMailField1(String mailField1) {
		this.mailField1 = mailField1;
	}


	@Column(name="MAIL_MBCC", length=254)
	public String getMailMbcc() {
		return this.mailMbcc;
	}

	public void setMailMbcc(String mailMbcc) {
		this.mailMbcc = mailMbcc;
	}


	@Column(name="MAIL_MCOPY", length=254)
	public String getMailMcopy() {
		return this.mailMcopy;
	}

	public void setMailMcopy(String mailMcopy) {
		this.mailMcopy = mailMcopy;
	}


	@Column(name="MAIL_MFROM", nullable=false, length=254)
	public String getMailMfrom() {
		return this.mailMfrom;
	}

	public void setMailMfrom(String mailMfrom) {
		this.mailMfrom = mailMfrom;
	}


	@Column(name="MAIL_MTO", nullable=false, length=254)
	public String getMailMto() {
		return this.mailMto;
	}

	public void setMailMto(String mailMto) {
		this.mailMto = mailMto;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="MAIL_SEND_DATE")
	public Date getMailSendDate() {
		return this.mailSendDate;
	}

	public void setMailSendDate(Date mailSendDate) {
		this.mailSendDate = mailSendDate;
	}


	@Column(name="MAIL_SENDER_AGENT", length=126)
	public String getMailSenderAgent() {
		return this.mailSenderAgent;
	}

	public void setMailSenderAgent(String mailSenderAgent) {
		this.mailSenderAgent = mailSenderAgent;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="MAIL_STORE_DATE", nullable=false)
	public Date getMailStoreDate() {
		return this.mailStoreDate;
	}

	public void setMailStoreDate(Date mailStoreDate) {
		this.mailStoreDate = mailStoreDate;
	}


	@Column(name="MAIL_SUBJ", nullable=false, length=255)
	public String getMailSubj() {
		return this.mailSubj;
	}

	public void setMailSubj(String mailSubj) {
		this.mailSubj = mailSubj;
	}

}